package com.hhl.api;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;

@Api("SwaggerDemo控制器")
@RestController
public class SwaggerController {

	@ApiOperation("swagger演示接口")
	@PostMapping("/swaggerIndex")
	public String swaggerIndex() {
		return "";
	}

	@ApiOperation("获取会员接口")
	@ApiImplicitParam(name = "hhl", value = "用户信息参数", required = true, dataType = "String")
	@PostMapping("/getMember")
	public String getMember(String userName) {
		System.out.println("userName:" + userName);
		return "userName:" + userName;
	}
}
